Overcurrent Detecting Circuit and Regulator Having the Same

ABSTRACT

The present invention provides an overcurrent detection circuit capable of suppressing fluctuations in the overcurrent detection level when the input supply voltage or temperature fluctuates. The overcurrent detection circuit  10   b  comprises a monitor transistor  21  a control terminal and output terminal of which are connected to a control terminal and output terminal respectively of an output transistor  11;  an output current detection transistor  22   b  to a control terminal of which a detection bias voltage  28  is input, and an output terminal of which is connected to an input terminal of the monitor transistor  21;  a constant current source  24  that generates a reference current I REF ; a reference transistor  23  to a control terminal of which the detection bias voltage  28  is input and from the output terminal of which the reference current I REF  flows to the constant current source  24;  and a comparison circuit  25   b  that outputs an overcurrent detection signal by comparing the voltage of the output terminal of the output current detection transistor  22   b  and the voltage of the output terminal of the reference transistor 23.

TECHNICAL FIELD

The present invention relates to an overcurrent detection circuit which, when an overcurrent flows to an output transistor which is a constituent element that outputs current to a load in a regulator that converts a supply voltage into a predetermined DC voltage, for example, detects the overcurrent and provides protection, and to a regulator that comprises the overcurrent detection circuit.

BACKGROUND ART

A regulator such as a switching regulator or series regulator has an output transistor provided between a supply voltage that is input and a terminal that is connected to the load and outputs a predetermined DC voltage. The regulator maintains a predetermined DC voltage by controlling the output transistor. Further, in order to prevent the output transistor from being damaged by an overcurrent in the event of an anomaly such as when there is a short-circuit of the load, a circuit to detect the overcurrent and implement protection is provided (for example, Patent Document 1).

FIG. 4 shows a conventional overcurrent detection circuit and a regulator that comprises the conventional overcurrent detection circuit. The regulator 101 is constituted by an output transistor 11 of a P-type MOS transistor, a smoothing circuit 12 that smoothes the output of the output transistor 11, an output terminal OUT that outputs a smoothed predetermined DC voltage, a control circuit 14 that controls the output transistor 11 by inputting the voltage of the output terminal OUT as feedback, and an overcurrent detection circuit 110 a that detects the overcurrent of the output transistor 11 and implements protection. A load 13 is connected to the output terminal OUT.

The overcurrent detection circuit 111 a is constituted by a monitor transistor 121 of a P-type MOS transistor the source of which is connected to a supply voltage V_(cc) and the gate of which is connected to the gate of the output transistor 11, an output current detection resistor 122 one end of which is connected to the drain of the monitor transistor 121 and the other end of which is grounded, an overcurrent detection output transistor 123 of an N-type MOS transistor, the gate of which is connected to an interconnect between the drain of the monitor transistor 121 and the output current detection resistor 122, the drain of which is connected to the control circuit 14, and the source of which is grounded. Here, the size of the monitor transistor 121 is set at 1/N that of the output transistor 11. The current flowing to the monitor transistor 121 is only used-in the overcurrent detection. Therefore, N is a natural number with a large value to minimize the current value so that the power loss is not increased.

Now, when an output current I_(o) flows to the output transistor 11, a current of substantially I_(o)/N flows to the monitor transistor 121 and a corresponding voltage is produced in the output current detection resistor 122 with ground potential serving as a reference. Further, when the output current I_(o) become an overcurrent and the voltage exceeds a threshold value (Vth) of the overcurrent detection output transistor 123, the overcurrent detection output transistor 123 outputs a low level. As a result, the control circuit 14 turns OFF the output transistor 11 since the output current of the output transistor 11 exceeds the overcurrent detection level (since it is judged that an overcurrent is flowing). Here, the overcurrent detection level can be adjusted by the size of the monitor transistor 121 and the resistance value of the output current detection resistor 122.

Thereafter, another conventional overcurrent detection circuit and a regulator comprising the overcurrent detection circuit are shown in FIG. 5. The regulator 102 has substantially the same constitution as the regulator 101 apart from the overcurrent detection circuit 110 b. The overcurrent detection circuit 110 b also comprises the monitor transistor 121 and output current detection resistor 122 as per the overcurrent detection circuit 110 a above. The overcurrent detection circuit 110 b comprises an overcurrent detection output comparator 125 instead of the overcurrent detection output transistor. 123. The overcurrent detection output comparator 125 has an inversion input terminal connected to the interconnect between the monitor transistor 121 and output current detection resistor 122, a non-inversion input terminal connected to an overcurrent detection reference voltage 124, and an output terminal connected to the control circuit 14.

When the output current I_(o) flows to the output transistor 11, a current of substantially I_(o)/N flows to the monitor transistor 121 and the corresponding voltage is produced in the output current detection resistor 122 with the ground potential serving as the reference. When the output current I_(o) become an overcurrent and the voltage exceeds the overcurrent detection reference voltage 124, the overcurrent detection output comparator 125 outputs a low level. As a result, the control circuit 14 turns OFF the output transistor 11 since the output current of the output transistor 11 exceeds the overcurrent detection level. Here, the overcurrent detection level can be adjusted by the size of the monitor transistor 121, the resistance value of the output current detection resistor 122, and the value of the overcurrent detection reference voltage 124.

-   Patent Document 1: Japanese Patent Application Laid-open No.     H8-331757

DISCLOSURE OF THE INVENTION PROBLEM TO BE SOLVED BY THE INVENTION

Thus, the overcurrent detection circuits 110 a and 110 b are able to detect the overcurrent flowing to the output transistor 11. The present inventor, who conducted research into further improving the accuracy of the overcurrent detection level of the overcurrent detection circuit, focused attention on the voltage produced in the output current detection resistor 122 in the overcurrent detection circuits 110 a and 110 b, that is, the drain voltage of the monitor transistor 121 is produced with ground potential as a reference, whereas the drain voltage of the output transistor 11 is produced not with grounds potential as a reference. That is, the voltage of the drain of the monitor transistor 121 accordingly differs from the voltage of the drain of the output transistor 11 and, as a result, it is assumed that the current of the monitor transistor 121 is displaced from the value I_(o)/N.

Therefore, although consideration was paid to adjusting the overcurrent detection level by calculating the displacement beforehand and changing the resistance value of the output current detection resistor 122, because the magnitude of the displacement also varies when the input supply voltage V_(cc) fluctuates, such a countermeasure is ineffective.

Furthermore, the present inventor also focused on the effect on the overcurrent detection level resulting from the fact that the monitor transistor 121 and output transistor 11 have different temperature characteristics from the output current detection resistor 122 when the temperature fluctuates. Further, because the characteristic of the overcurrent detection output transistor 123 in the overcurrent detection circuit 110 a also fluctuates, it is assumed that the overcurrent detection level further fluctuates.

The present invention was conceived for the above reasons, and an object of the present invention is to provide an overcurrent detection circuit and a regulator that comprises the overcurrent detection circuit that permit suppression of the fluctuations in the overcurrent detection level when the input supply voltage or temperature fluctuates.

MEANS FOR SOLVING THE PROBLEM

In order to solve the above problem, the overcurrent detection circuit according to a preferred embodiment of the present invention is an overcurrent detection circuit which detects an overcurrent when the overcurrent flows to an output transistor to the input terminal of which a supply voltage is input, to the control terminal of which a control voltage is input, and from the output terminal of which an output current is output, comprising: a monitor transistor a control terminal and output terminal of which are connected to the control terminal and output terminal respectively of the output transistor; an output current detection transistor to an input terminal of which a supply voltage is input, to a control terminal of which a detection bias voltage is input, and an output terminal of which is connected to an input terminal of the monitor transistor; a constant current source that generates a reference current; a reference transistor to an input terminal of which a supply voltage is input, to a control terminal of which the detection bias voltage is input and from the output terminal of which the reference current flows to the constant current source; and a comparison circuit that detects an overcurrent when the overcurrent flows to the output transistor by comparing the voltage of the output terminal of the output current detection transistor and the voltage of the output terminal of the reference transistor, and outputs an overcurrent detection signal.

The output transistor, the monitor transistor, the output current detection transistor, and the reference transistor are preferably P-type MOS transistors.

The comparison circuit preferably comprises: a diode-connected first comparison transistor that is interposed between the constant current source and the reference transistor; a second constant current source that generates a current that is a predetermined multiple of the reference current generated by the constant current source; and a second comparison transistor that is interposed between the second constant current source and the output current detection transistor, a control terminal of the second comparison transistor being connected to a control terminal of the first comparison transistor.

The regulator according to a preferred embodiment of the present invention is a regulator comprising the above overcurrent detection circuit, wherein the output transistor is provided between a supply voltage and an output terminal that outputs a predetermined DC voltage, and the regulator further comprises a control circuit that controls the output transistor to maintain the predetermined DC voltage by inputting the voltage of the output terminal as feedback and that turns off the output transistor when the overcurrent detection signal of the overcurrent detection circuit is input to the control circuit.

EFFECTS OF THE INVENTION

The overcurrent detection circuit according to a preferred embodiment of the present invention has a serial body of a monitor transistor and an output current detection transistor provided in parallel with an output transistor, and a reference transistor provided in parallel with an output current detection transistor. Because the overcurrent detection circuit detects an overcurrent by comparing the output of the output current detection transistor with the output of the reference transistor, even when the input supply voltage or temperature fluctuates, the characteristics of these transistors do not fluctuate very much in relative terms and the fluctuations in the overcurrent detection level can be suppressed. Further, the regulator that comprises the overcurrent detection circuit has a stable overcurrent detection level and, therefore, reliability can be improved.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a circuit diagram of an overcurrent detection circuit according to an embodiment of the present invention and a regulator that comprises the overcurrent detection circuit;

FIG. 2 is an operating waveform diagram of the overcurrent detection circuit of FIG. 1;

FIG. 3 is a circuit diagram of an overcurrent detection circuit according to another embodiment of the present invention and a regulator that comprises the overcurrent detection circuit;

FIG. 4 is a circuit diagram of an conventional overcurrent detection circuit and a regulator that comprises the overcurrent detection circuit; and

FIG. 5 is a circuit diagram of another conventional overcurrent detection circuit and a regulator that comprises the overcurrent detection circuit.

EXPLANATION OF REFERENCE NUMERALS

1, 2 Regulator

10 a, 10 b Overcurrent detection circuit

11 Output transistor

13 Load

21 Monitor transistor

22 a, 22 b Output current detection transistor

23 Reference transistor

24 Constant current source

25 a, 25 b Comparison circuit

28 Detection bias voltage

31 First comparison transistor

32 Second comparison transistor

33 Second constant current source

V_(cc) Supply voltage

OUT Output terminal of Regulator

BEST MODE FOR CARRYING OUT THE INVENTION

Preferred embodiments of the present invention will be described hereinbelow with reference to the drawings. FIG. 1 is a circuit diagram of an overcurrent detection circuit according to an embodiment of the present invention and a regulator that comprises the overcurrent detection circuit. This regulator 1 provides an output transistor 11 of a P-type MOS transistor between a supply voltage V_(cc) and an output terminal OUT and maintains the output terminal OUT at a predetermined DC voltage by controlling the output transistor 11 and, when an overcurrent flows to the output transistor 11, an overcurrent detection circuit 10 a detects the overcurrent and turns OFF the output transistor 11. To describe this in more detail, the regulator 1 comprises an output transistor 11 to the input terminal (source) of which a supply voltage V_(cc) is input, to the control terminal (gate) of which a control voltage is input, and from the output terminal (drain) of which the output current I_(o) is output, a smoothing circuit 12 that smoothes the voltage produced at the output terminal of the output transistor 11, an output terminal OUT that outputs a predetermined DC voltage that has been smoothed, a control circuit 14 that controls the output transistor 11 via node C in FIG. 1 in order to maintain the predetermined DC voltage by inputting the voltage of the output terminal OUT as feedback and that, when the overcurrent detection signal of the overcurrent detection circuit 10 a is input to the control circuit 14 from node D, establishes the control voltage of node C at the supply voltage V_(cc) level in order to turn OFF the output transistor 11, and the overcurrent detection circuit 10 a that detects an overcurrent when an overcurrent flows to the output transistor 11 and outputs the overcurrent detection signal to the control circuit 14 from node D. Load 13 is connected to the output terminal OUT.

The overcurrent detection circuit 10 a comprises a monitor transistor 21 of a P-type MOS transistor the control terminal (gate) and output terminal (drain) of which are connected to the control terminal (gate) and output terminal (drain) respectively of the output transistor 11; an output current detection transistor 22 a of a P-type MOS transistor to the input terminal (source) of which the supply voltage V_(cc) is input, to the control terminal (gate) of which a detection bias voltage 28 is input, the output terminal (drain) of the output current detection transistor 22 a being connected to the input terminal (source) of the monitor transistor 21; a constant current source 24 of an N-type MOS transistor that generates a reference current I_(REF) (10 μA, for example); a reference transistor 23 of a P-type MOS transistor to the input terminal (source) of which the supply voltage V_(cc) is input, to the control terminal (gate) of which a detection bias voltage 28 is input, and from the output terminal (drain) of which the reference current I_(REF) flows to the constant current source 24; and a comparison circuit 25 a consisting of a comparator that compares the voltage (that is, the voltage of node B in FIG. 1) of the output terminal (drain) of the output current detection transistor 22 a and the voltage (that is, the voltage of node A in FIG. 1) of the output terminal (drain) of the reference transistor 23 and outputs a detection signal to node D. The comparison circuit 25 a more specifically outputs a high-level detection signal when an overcurrent is not flowing to the output transistor 11 and outputs a low-level overcurrent detection signal when an overcurrent is flowing and is detected. That is, the overcurrent detection circuit 10 a has a serial body consisting of the monitor transistor 21 and an output current detection transistor 22 a provided in parallel with the output transistor 11 and has the reference transistor 23 provided in parallel with the output current detection transistor 22 a, and detects an overcurrent by comparing the output of the output current detection transistor 22 a with the output of the reference transistor 23. The monitor transistor 21, output current detection transistor 22 a, and reference transistor 23 are equal in size and set at 1/N ( 1/50000, for example) the size of the output transistor 11. The overcurrent detection circuit 10 a further comprises an N-type MOS transistor 26 and constant current source 27 which determine the current value of the constant current source 24.

The detection bias voltage 28 that is commonly input to the control terminals of the output current detection transistor 22 a and reference transistor 23 is preferably made to substantially match the voltage of the control terminal (gate) of the monitor transistor 21. For example, when the regulator 1 is a switching regulator, the detection bias voltage 28 is preferably at the ground voltage level.

The operation of the overcurrent detection circuit 10 a will be described next on the basis of the operating waveform diagram in FIG. 2. The operating waveform diagram shows the operating waveforms of nodes A and B (curves A and B), that is, the change in the voltages of nodes A and B with respect to the output current I_(o), and the operating waveforms of the comparison circuit 25 a, that is, the change in the detection signal output (voltage of node D). The sizes of the monitor transistor 21 and output current detection transistor 22 a are set at 1/N that of the output transistor 11. Hence, when the output current I_(o) flows to the output transistor 11, the current I₁ flowing to the serially connected (serial body) monitor transistor 21 and output current detection transistor 22 a is then substantially I_(o)/2N. That is, supposing that the value of the equivalent resistors of the monitor transistor 21 and output current detection transistor 22 a is R, the value of the equivalent resistor of the output transistor 11 is R/N, whereby the following equations are established.

RI ₁ +RI ₁ =RI _(o) /N   (1)

Hence,

I ₁ =I _(o)/2N   (2).

Further, the voltage required to cause a current of I_(o)/2N to flow to the output current detection transistor 22 a is produced at node B with the supply voltage V_(cc) serving as a reference. The voltage of node B drops linearly when the output current I_(o) of the output transistor 11 increases. On the other hand, the voltage required to cause the reference current I_(REF) to flow to the reference transistor 23 is produced at node A with the supply voltage V_(cc) serving as a reference. Therefore, when the output current I_(o) of the output transistor 11 increases and the current I_(o)/2N flowing to the monitor transistor 21 and output current detection transistor 22 a exceeds the value of the reference current I_(REF), that is, supposing that the voltage of node B drops to or below the voltage of node A, the detection signal of node D constituting the output of the comparison circuit 25 a changes from a high level to a low level (overcurrent detection signal). More specifically, when N is set at 50000 and the reference current I_(REF) is set at 10 μA, the current I_(o) of the output transistor 11 is equal to or more than substantially 1 A (amperes) and the detection signal of node D assumes a low level. As a result, the control circuit 14 turns OFF the output transistor 11 since the output current I_(o) of the output transistor 11 exceeds the overcurrent detection level I_(E) (since it is judged that an overcurrent is flowing).

Here, the voltages of the respective output terminals (drains) of the monitor transistor 21 and output current detection transistor 22 a of the serial body and of the reference transistor 23 are produced in accordance with the value of the current flowing thereto as per the output transistor 11, with the supply voltage V_(cc) serving as a reference. Therefore, a displacement of the ratio of the currents flowing to these transistors from the ratio of size thereof, which is caused by fluctuations in the voltages of the output terminals (drains) of these transistors due to the effect of other elements, is suppressed. Even when the supply voltage V_(cc) fluctuates, the voltages of the output terminals (drains) of these transistors are produced with the supply voltage V_(cc) serving as a reference. Hence, the effect is not received and fluctuations in the overcurrent detection level I_(E) are barely induced.

In addition, the output transistor 11, monitor transistor 21, output current detection transistor 22 a, and reference transistor 23 are all P-type MOS transistors and have the same temperature characteristic. Hence, the characteristics of the monitor transistor 21, output current detection transistor 22 a, and reference transistor 23 vary in the same way as the characteristic of the output transistor 11 even when the temperature fluctuates and fluctuations in the overcurrent detection level I_(E) produced as a result of fluctuations in temperature can be suppressed.

An overcurrent detection circuit according to another embodiment of the present invention and a regulator that comprises the overcurrent detection circuit will be described next on the basis of FIG. 3. The regulator 2 has substantially the same constitution as that of the regulator 1 above apart from the overcurrent detection circuit 10 b and, therefore, the overcurrent detection circuit 10 b will be described below.

As per the overcurrent detection circuit 10 a, the overcurrent detection circuit 10 b comprises the monitor transistor 21, an output current detection transistor 22 b, the reference transistor 23, and the constant current source 24 that generates the reference current I_(REF). However, although the sizes of the monitor transistor 21 and reference transistor 23 are established as the same as those of the overcurrent detection circuit 10 a, the size of the output current detection transistor 22 b is established as two times the size of the monitor transistor 21 and reference transistor 23.

The overcurrent detection circuit 10 b has a comparison circuit 25 b comprising another circuit constitution instead of the comparison circuit 25 a consisting of the comparator of the above embodiment. The comparison circuit 25 b comprises a first comparison transistor 31 of a diode-connected (the output terminal (drain) and control terminal (gate) thereof are connected) P-type MOS transistor that is interposed between the constant current source 24 and reference transistor 23; a second constant current source 33 that generates a current that is a predetermined multiple (equal value in this embodiment) of the reference current I_(REF) generated by the constant current source (N-type MOS transistor) 24 by having a common gate voltage with the constant current source 24; and a second comparison transistor 32 of a P-type MOS transistor that is interposed between the second constant current source 33 and the output current detection transistor 22 b, the control terminal (gate) of the second comparison transistor 32 being connected to the control terminal (gate) of the first comparison transistor 31. Therefore, when the potential of the input terminal (source) of the second comparison transistor 32 drops below that of the input terminal (source) of the first comparison transistor 31, current no longer flows to the second comparison transistor 32 (the second comparison transistor 32 is turned OFF).

The operation of the overcurrent detection circuit 10 b will be described next. Supposing that the value of the equivalent resistance of the monitor transistor 21 and reference transistor 23 is R, the value of the equivalent resistance of the output current detection transistor 22 b is then R/2 and the value of the equivalent resistance of the output transistor 11 is R/N. The current flowing to the output current detection transistor 22 b is divided into a current I₁ that flows to the monitor transistor 21 and a current I_(REF) that flows to the second constant current source 33. Hence, a voltage R (I_(REF)+I₁)/2 that is required in order for the current I_(REF)+I₁ to flow to the output current detection transistor 22 b is produced at node B with the supply voltage V_(cc) serving as a reference. And,

R(I _(REF) +I ₁)/2+RI ₁ =RI ₀ /N   (3)

is established and the current I₁ flows to the monitor transistor 21 to satisfy this equation.

On the other hand, a voltage RI_(REF) required in order for the reference current I_(REF) to flow to the reference transistor 23 is produced at node A with the supply voltage V_(cc) serving as a reference. When the voltage of node B is equal to the voltage of node A,

R(I _(REF) +I ₁)/2=RI _(REF)   (4)

is established. Solving this equation gives:

I₁ =I _(REF)   (5)

Further, when Equation (5) is substituted into Equation (3)

I₁ =I _(REF) =I _(o)/2N   (6).

Further, when current I₁ that flows to the monitor transistor 21 exceeds current I_(REF), the voltage of node B drops below that of node A and, therefore, the second comparison transistor 32 is turned OFF and the output of the comparison circuit 25 b, that is, the detection signal of node D changes from a high level to a low level (overcurrent detection signal). More specifically, supposing that N is set at 50000 and the reference current I_(REF) is set at 10 μA, when the output current I_(o) of the output transistor 11 is equal to or more than 1 A, the detection signal of node D assumes a low level.

Thus, as per the overcurrent detection circuit 10 a, when an overcurrent flows to the output transistor 11, the overcurrent detection circuit 10 b is able to detect the overcurrent and output an overcurrent detection signal from node D to the control circuit 14. In addition, the comparison circuit 25 b of the overcurrent detection circuit 10 b does not use a comparator such as the comparison circuit 25 a of the overcurrent detection circuit 10 a. Hence, the number of elements constituting the circuit can be reduced and the occupied surface area and power consumption can be reduced.

In the overcurrent detection circuit 10 a or 10 b, the reference current I_(REF) may be changed in order to adjust the overcurrent detection level I_(E). Further, in the case of overcurrent detection circuit 10 b, by changing the predetermined scaling factor of the current value that flows by changing the size of the second constant current source (N-type MOS transistor) 33 with respect to the constant current source (N-type MOS transistor) 24, the overcurrent detection level I_(E) can also be adjusted. For example, when the size of the second constant current source (N-type MOS transistor) 33 is ½, when

I _(REF)=2I _(o)/5N   (7)

the voltage of node B equals the voltage of node A. Hence, supposing that N is set at 50000 and the reference current I_(REF) is set at 10 μA, the overcurrent detection level I_(E) is 1.25 A.

In addition, the overcurrent detection level I_(E) can also be adjusted by changing the ratio of the size of the reference transistor 23 with respect to that of the monitor transistor 21 and output current detection transistor 22 a (22 b). For example, in the case of the overcurrent detection circuit 10 a, supposing that the size of the reference transistor 23 is ½ that of the monitor transistor 21 and output current detection transistor 22 a, the overcurrent detection level I_(E) is 2 A under the above conditions (that N is 50000 and the reference current I_(REF) is 10 μA). Furthermore, in the case of the overcurrent detection circuit 10 b, supposing that the size of the reference transistor 23 is ½ that of the monitor transistor 21, when

I _(REF) =I _(o)/5N   (8)

the voltage of node B equals the voltage of node A. Hence, the overcurrent detection level I_(E) is then 2.5 A under the above conditions (that N is 50000 and the reference current I_(REF) is 10 μA).

The present invention is not limited to the above embodiments. A variety of design modifications within the scope of the items appearing in the claims are possible. For example, although, in the above embodiment, the description was such that the output transistor 11 of the regulator is a P-type MOS transistor, and the monitor transistor 21, output current detection transistor 22 a (22 b) and reference transistor 23 of the overcurrent detection circuit are all P-type MOS transistors, the output transistor 11 can also be an N-type MOS transistor, a PNP-type bipolar transistor or an NPN-type bipolar transistor. In this case, it is understood that the overcurrent detection circuit may be constituted by the monitor transistor.21, output current detection transistor 22 a (22 b); and reference transistor 23 adapted to the type of the output transistor 11. 

1-4. (canceled)
 5. An overcurrent detection circuit which detects an overcurrent when the overcurrent flows to an output transistor including an input terminal to which a supply voltage is input, a control terminal to which a control voltage is input, and an output terminal from which an output current is output, the overcurrent detection circuit comprising: a monitor transistor including a control terminal and an output terminal which are connected to the control terminal and the output terminal respectively of the output transistor; an output current detection transistor including an input terminal to which a supply voltage is input, a control terminal to which a detection bias voltage is input, and an output terminal which is connected to an input terminal of the monitor transistor; a constant current source that generates a reference current; a reference transistor including an input terminal to which a supply voltage is input, a control terminal to which the detection bias voltage is input, and an output terminal from which the reference current flows to the constant current source; and a comparison circuit that detects an overcurrent when the overcurrent flows to the output transistor by comparing the voltage of the output terminal of the output current detection transistor and the voltage of the output terminal of the reference transistor, and outputs an overcurrent detection signal.
 6. The overcurrent detection circuit according to claim 5, wherein the output transistor, the monitor transistor, the output current detection transistor, and the reference transistor are P-type MOS transistors.
 7. The overcurrent detection circuit according to claim 5, wherein the comparison circuit comprises: a diode-connected first comparison transistor that is interposed between the constant current source and the reference transistor; a second constant current source that generates a current that is a predetermined multiple of the reference current generated by the constant current source; and a second comparison transistor that is interposed between the second constant current source and the output current detection transistor, a control terminal of the second comparison transistor being connected to a control terminal of the first comparison transistor.
 8. A regulator comprising the overcurrent detection circuit according to claim 5, wherein the output transistor is provided between a supply voltage and an output terminal that outputs a predetermined DC voltage, and the regulator further includes a control circuit that controls the output transistor to maintain the predetermined DC voltage by inputting the voltage of the output terminal as feedback and that turns off the output transistor when the overcurrent detection signal of the overcurrent detection circuit is input to the control circuit.
 9. A regulator comprising the overcurrent detection circuit according to claim 6, wherein the output transistor is provided between a supply voltage and an output terminal that outputs a predetermined DC voltage, and the regulator further includes a control circuit that controls the output transistor to maintain the predetermined DC voltage by inputting the voltage of the output terminal as feedback and that turns off the output transistor when the overcurrent detection signal of the overcurrent detection circuit is input to the control circuit.
 10. A regulator comprising the overcurrent detection circuit according to claim 7, wherein the output transistor is provided between a supply voltage and an output terminal that outputs a predetermined DC voltage, and the regulator further includes a control circuit that controls the output transistor to maintain the predetermined DC voltage by inputting the voltage of the output terminal as feedback and that turns off the output transistor when the overcurrent detection signal of the overcurrent detection circuit is input to the control circuit. 